package org.example.clienet.service;

import org.springframework.boot.logging.LoggerConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(name = "spring-cloud-alibaba-provider-229981204")

public interface FeignService {
    @GetMapping(value = "/hello/nacos/229981204")
    public String getPort();
    // feign的参数绑定
    @GetMapping(value = "/hello1")
    public String hello(@RequestParam("name") String name);

}